<template>
  <div>
    <div class="yy">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄",
        },
      ],
    };
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row);
    },
    handleDelete(index, row) {
      console.log(index, row);
    },
  },
};
</script>
 
<style lang = "less" scoped>
.yy {
  display: flex;
  flex-direction: column;
  position: absolute;
  box-sizing: border-box;
  top: 70px;
  left: 250px;
  bottom: 0;
  right: 0;
  transition: left 0.3s ease-in-out;
  background-color: #f0f0f0;
  padding: 15px 15px 8px;
  overflow-y: auto;
}
</style>